package com.fable.dal.mapper;

import com.fable.dal.model.CustomerSourceDO;
import com.fable.dal.model.CustomerSourceQuery;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * MyBatis Mapper for CustomerSource.
 */
public interface CustomerSourceMapper {
    /**
     * query count by query condition.
     */
    int countByQuery(CustomerSourceQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(CustomerSourceQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(CustomerSourceDO record);

    /**
     * insert selective.
     */
    int insertSelective(CustomerSourceDO record);

    /**
     * select by query condition.
     */
    List<CustomerSourceDO> selectByQuery(CustomerSourceQuery query);

    /**
     * select by primary key.
     */
    CustomerSourceDO selectByPrimaryKey(Integer id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective(@Param("record") CustomerSourceDO record, @Param("query") CustomerSourceQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(@Param("record") CustomerSourceDO record, @Param("query") CustomerSourceQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(CustomerSourceDO record);
}